package com.wen.wenda.service.scoring;

import com.wen.wenda.model.domain.App;
import com.wen.wenda.model.domain.UserAnswer;

import java.util.List;

/**
 * 评分策略（策略模式）
 *
 * @author wen
 */
public interface ScoringStrategy {

    /**
     * 执行评分
     *
     * @param choices 用户的选择
     * @param app 应用
     * @return 答题记录
     */
    UserAnswer executeScoring(List<String> choices, App app);

}
